package com.ym.manager.sys.model;

import com.ym.utils.DateUtil;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

// 人员
public class AdminUser implements Serializable {
    private Long id;

    private String username;

    private String password;

    private String salt;

    private String name;

    private Integer status;

    private Integer type;

    private Long dept_id = 0L;

    private Long area = 0L;

    private String mobile;

    private String email;

    private Date create_time;

    private String last_login_ip;

    private Date last_login_time;

    private Integer add_status;

    private Integer update_status;

    private Integer delete_status;
    // 拓展字段
    private List<TreeObject> userMenuList;
    private AdminRole role;
    private long role_id;
    private String roleName;
    private int ROWNO;
    private String createTime;
    private String areaName;
    private String deptName;
    private int merchant_id;

    public int getMerchant_id() {
        return merchant_id;
    }

    public void setMerchant_id(int merchant_id) {
        this.merchant_id = merchant_id;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getDept_id() {
        return dept_id;
    }

    public void setDept_id(Long dept_id) {
        this.dept_id = dept_id;
    }

    public Long getArea() {
        return area;
    }

    public void setArea(Long area) {
        this.area = area;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getLast_login_ip() {
        return last_login_ip;
    }

    public void setLast_login_ip(String last_login_ip) {
        this.last_login_ip = last_login_ip;
    }

    public Date getLast_login_time() {
        return last_login_time;
    }

    public void setLast_login_time(Date last_login_time) {
        this.last_login_time = last_login_time;
    }

    public List<TreeObject> getUserMenuList() {
        return userMenuList;
    }

    public void setUserMenuList(List<TreeObject> userMenuList) {
        this.userMenuList = userMenuList;
    }

    public AdminRole getRole() {
        return role;
    }

    public void setRole(AdminRole role) {
        this.role = role;
    }

    public long getRole_id() {
        return role_id;
    }

    public void setRole_id(long role_id) {
        this.role_id = role_id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public int getROWNO() {
        return ROWNO;
    }

    public void setROWNO(int ROWNO) {
        this.ROWNO = ROWNO;
    }

    public String getCreateTime() {
        createTime = DateUtil.getDate(getCreate_time(), "yyyy-MM-dd HH:mm:ss");
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Integer getAdd_status() {
        return add_status;
    }

    public void setAdd_status(Integer add_status) {
        this.add_status = add_status;
    }

    public Integer getUpdate_status() {
        return update_status;
    }

    public void setUpdate_status(Integer update_status) {
        this.update_status = update_status;
    }

    public Integer getDelete_status() {
        return delete_status;
    }

    public void setDelete_status(Integer delete_status) {
        this.delete_status = delete_status;
    }

    @Override
    public String toString() {
        return "AdminUser{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", salt='" + salt + '\'' +
                ", name='" + name + '\'' +
                ", status=" + status +
                ", type=" + type +
                ", add_status=" + add_status +
                ", update_status=" + update_status +
                ", delete_status=" + delete_status +
                ", dept_id=" + dept_id +
                ", area=" + area +
                ", mobile='" + mobile + '\'' +
                ", email='" + email + '\'' +
                ", create_time=" + create_time +
                ", last_login_ip='" + last_login_ip + '\'' +
                ", last_login_time=" + last_login_time +
                ", userMenuList=" + userMenuList +
                ", role=" + role +
                ", role_id=" + role_id +
                ", roleName='" + roleName + '\'' +
                ", ROWNO=" + ROWNO +
                ", createTime='" + createTime + '\'' +
                ", areaName='" + areaName + '\'' +
                ", deptName='" + deptName + '\'' +
                '}';
    }
}